import { Notification } from 'element-ui';

const bjsNotify = {
  offset   : 40,
  position : 'bottom-right',
  duration : 2000,

  success : function (msg) {
    Notification.success(
      {
        offset   : this.offset,
        position : this.position,
        duration : this.duration,
        title    : '(๑•̀ㅂ•́)و✧',
        message  : msg
      }
    )
  },
  error : function (msg) {
    Notification.error(
      {
        offset   : this.offset,
        position : this.position,
        duration : this.duration,
        title    : '(#ﾟДﾟ)و!',
        message  : msg
      }
    )
  }
}

export default bjsNotify